home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / widgets / include / GL / MesaWorkstation.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  2.5 KB  |  69 lines

  1. /* MesaWorkstation.h -- Public header file for the Mesa Workstation widget
  2.    Copyright (C) 1995 Thorsten.Ohl @ Physik.TH-Darmstadt.de
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2 of the License, or (at your option) any later version.
  8.  
  9.    This library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public
  15.    License along with this library; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18.    $Id: MesaWorkstation.h,v 1.7 1995/05/19 20:30:59 ohl Exp $
  19.  */
  20.  
  21. #ifndef _MesaWorkstation_h
  22. #define _MesaWorkstation_h
  23.  
  24. #include <GL/gl.h>
  25. #include <GL/GLwDrawA.h>
  26. #include <GL/MesaDrawingArea.h>
  27.  
  28. typedef struct _MesaWorkstationClassRec *MesaWorkstationWidgetClass;
  29. typedef struct _MesaWorkstationRec *MesaWorkstationWidget;
  30. extern WidgetClass mesaWorkstationWidgetClass;
  31.  
  32. void GLwBeginProjection (Widget w);
  33. void GLwEndProjection (void);
  34. void GLwPostProjectionList (Widget, GLuint);
  35. void GLwPostProjectionMatrix (Widget, GLdouble *m);
  36. void GLwPostCurrentProjection (Widget);
  37. void GLwUnpostProjection (Widget);
  38. GLuint GLwGetProjectionList (Widget w);
  39. int GLwGetProjectionMatrix (Widget w, GLdouble *m);
  40. void GLwSetFrustumProjection (Widget w, GLdouble left, GLdouble right,
  41.                   GLdouble bottom, GLdouble top,
  42.                   GLdouble near, GLdouble far);
  43. void GLwSetOrthoProjection (Widget w, GLdouble left, GLdouble right,
  44.                 GLdouble bottom, GLdouble top,
  45.                 GLdouble near, GLdouble far);
  46.  
  47. void GLwBeginView (Widget w);
  48. void GLwEndView (void);
  49. void GLwPostViewList (Widget, GLuint);
  50. void GLwPostViewMatrix (Widget, GLdouble *m);
  51. void GLwPostCurrentView (Widget);
  52. void GLwUnpostView (Widget);
  53. GLuint GLwGetViewList (Widget w);
  54. int GLwGetViewMatrix (Widget w, GLdouble *m);
  55. void GLwSetPolarView (Widget w, GLdouble r, GLdouble theta, GLdouble phi);
  56.  
  57. void GLwPostObject (Widget, GLuint);
  58. void GLwUnpostObject (Widget, GLuint);
  59. void GLwUnpostAllObjects (Widget);
  60.  
  61. void GLwRedrawObjects (Widget);
  62.  
  63. void GLwPostProjection (Widget, GLuint); /* obsolete */
  64. GLuint GLwGetProjection (Widget w); /* obsolete */
  65. void GLwPostView (Widget, GLuint); /* obsolete */
  66. GLuint GLwGetView (Widget w); /* obsolete */
  67.  
  68. #endif /* _MesaWorkstation_h */
  69.